package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备发送指令表
 * </p>
 *
 * @author HuangLu
 * @since 2019-01-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BarSending extends Model<BarSending> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "sending_id", type = IdType.AUTO)
    private Long sendingId;

    /**
     * sim卡号
     */
    private String sim;

    /**
     * 设备id
     */
    private String devId;

    /**
     * 指令拼接字符串
     */
    private String command;

    /**
     * 发送状态 默认0=待发送，1=已发送
     */
    private Integer sendStatus;

        /**
     * 发送名称
     */
    private String sendName;

        /**
     * 缓存名称
     */
    private String cacheName;

    /**
     * 发送时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime sendTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createDate;



    @Override
    public String toString() {
        return "BarSending{" +
        "sendingId=" + sendingId +
        ", sim=" + sim +
        ", devId=" + devId +
        ", command=" + command +
        ", sendStatus=" + sendStatus +
        ", cacheName=" + cacheName +
        ", sendName=" + sendName +
        ", sendTime=" + sendTime +
        ", createDate=" + createDate +
        "}";
    }
}

